package cn.clickmed.getActivityC;

import org.apache.cordova.CordovaActivity;
import org.apache.cordova.LOG;

import cn.clickmed.DaTong.R;
import cn.clickmed.exitApp.SysApplication;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.inputmethod.InputMethodManager;

public class getActivityC extends CordovaActivity{
    @Override
	public void onCreate(Bundle savedInstanceState)
    {
    	
        super.onCreate(savedInstanceState);
        super.init();
        getIntent().putExtra("splashscreen", R.drawable.datong_db_bg);
        InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
        im.hideSoftInputFromWindow(getCurrentFocus().getApplicationWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
  
        Intent tempI = getIntent();
        Bundle extras =tempI.getExtras();
    	String url =extras.getString("url");
    	LOG.e("url",url);
        // Set by <content src="index.html" /> in config.xml
        super.loadUrl(url);
        //super.loadUrl("file:///android_asset/www/index.html");
     //   this.getActivity().setResult(99,tempI);
        SysApplication.getInstance().addActivity(this); 
       
    }

}